package edu.sctu.practice.class02.Wangpeng.Dtest5;

import java.util.Scanner;

/**
 * Created by wp on 2015/12/24.
 */
public class Years {
    public static void main(String[] args) {
        for(int i=0;i==0;){
        System.out.println("输入年份");
        Scanner input=new Scanner(System.in);
        int year=input.nextInt();
        System.out.println("输入年份");
        if((year%4==0&&year%100!=0)||year%400==0)
            System.out.println(+year+"是闰年。");
                else
                    System.out.println(+year+"是平年。");
            }while (true){
            System.out.println("输入年份");
            Scanner input=new Scanner(System.in);
            int year=input.nextInt();
            System.out.println("输入年份");
            if((year%4==0&&year%100!=0)||year%400==0)
                System.out.println(+year+"是闰年。");
            else
                System.out.println(+year+"是平年。");

        }
    }
        }

